<?php
require_once 'library/smarty/libs/Smarty.class.php';

class SmartyConfig extends Smarty //编写SmartyConfig类，使其继承自Smarty类
{
    function SmartyConfig () //构造方法
    {
        $this-> __construct(); //调用父类的构造方法
        $arrayIni = parse_ini_file('config/config.ini'); //解析LzhConfig.ini文件，来获取配置信息
        $this->debugging = false;
		$this->caching = true;
		$this->cache_lifetime = 120;
		$this->template_dir = $arrayIni['template_dir']; //模板文件保存目录
        $this->compile_dir = $arrayIni['compile_dir']; //编译文件保存目录
        $this->cache_dir = $arrayIni['cache_dir']; //缓存文件保存目录
        $this->config_dir = $arrayIni['config_dir']; //配置文件保存目录
        $this->caching = $arrayIni['caching']; //是否开启视图缓存
    }
}

?>